<%@ page language="java" pageEncoding="utf-8"%>
<%@ taglib prefix="s" uri="/struts-tags" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <title>My JSP 'index.jsp' starting page</title>
  </head>
  
  <body>&nbsp; 
    You:<br/>
    <s:property value="#session.username"/>   <a href="<s:url action="logoutLogio"/>">注销</a><br>
        ---------------------------------------<br>
       <s:action name="toMainPage" executeResult="true" namespace="/"/>
    <s:if test="tasks!=null">
    Tasks:<br> 
    <s:iterator value="tasks" status="st">
    <li> id:<s:property value="id"/> name:<s:property value="name"/>
    <s:form action="shenqing" method="post">
    	<s:hidden name="taskId" value="%{tasks.{id}[#st.index]}"></s:hidden><s:submit value="完成" /></s:form> 
    </li>
    </s:iterator>
   </s:if>
  </body>
</html>
